const test1 = () => {
  return {
    type: 'one',
    num: 2,
  }
}

const test2 = () => ({
  type: 'two',
  num: 3,
})

console.log(test1());
console.log(test2());